<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>垂直对齐方式</title>
  <style>
    div{
      border: 1px solid red;
    }

    img{
      /* 默认情况下图片会居上 */
      vertical-align: middle;
    }
  </style>
</head>
<body>
  <div>
    <img src="./images/5474.jpg_wh860.jpg" alt="">
    我是谁
  </div>
</body>
</html>